package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.BasisTaskProgrammeMapper;
import com.ruoyi.domain.BasisTaskProgramme;
import com.ruoyi.service.IBasisTaskProgrammeService;

/**
 * 任务计划Service业务层处理
 * 
 * @author wangzebing
 * @date 2025-03-20
 */
@Service
public class BasisTaskProgrammeServiceImpl implements IBasisTaskProgrammeService 
{
    @Autowired
    private BasisTaskProgrammeMapper basisTaskProgrammeMapper;

    /**
     * 查询任务计划
     * 
     * @param id 任务计划主键
     * @return 任务计划
     */
    @Override
    public BasisTaskProgramme selectBasisTaskProgrammeById(Long id)
    {
        return basisTaskProgrammeMapper.selectBasisTaskProgrammeById(id);
    }

    /**
     * 查询任务计划列表
     * 
     * @param basisTaskProgramme 任务计划
     * @return 任务计划
     */
    @Override
    public List<BasisTaskProgramme> selectBasisTaskProgrammeList(BasisTaskProgramme basisTaskProgramme)
    {
        return basisTaskProgrammeMapper.selectBasisTaskProgrammeList(basisTaskProgramme);
    }

    /**
     * 新增任务计划
     * 
     * @param basisTaskProgramme 任务计划
     * @return 结果
     */
    @Override
    public int insertBasisTaskProgramme(BasisTaskProgramme basisTaskProgramme)
    {
        return basisTaskProgrammeMapper.insertBasisTaskProgramme(basisTaskProgramme);
    }

    /**
     * 修改任务计划
     * 
     * @param basisTaskProgramme 任务计划
     * @return 结果
     */
    @Override
    public int updateBasisTaskProgramme(BasisTaskProgramme basisTaskProgramme)
    {
        return basisTaskProgrammeMapper.updateBasisTaskProgramme(basisTaskProgramme);
    }

    /**
     * 批量删除任务计划
     * 
     * @param ids 需要删除的任务计划主键
     * @return 结果
     */
    @Override
    public int deleteBasisTaskProgrammeByIds(Long[] ids)
    {
        return basisTaskProgrammeMapper.deleteBasisTaskProgrammeByIds(ids);
    }

    /**
     * 删除任务计划信息
     * 
     * @param id 任务计划主键
     * @return 结果
     */
    @Override
    public int deleteBasisTaskProgrammeById(Long id)
    {
        return basisTaskProgrammeMapper.deleteBasisTaskProgrammeById(id);
    }
}
